// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import {
	HTTP_REQUEST_URL,
	HEADER,
	TOKENNAME,
	HEADERPARAMS
} from '@/config/app';
import store from "../store";
export function checkOverdue(data) {
	let Url = HTTP_REQUEST_URL,
		header = HEADER;
	uni.request({
		url: Url + '/api/front/user',
		method: 'GET',
		header: header,
		success: (res) => {
			if ([410000, 410001, 410002, 401].indexOf(res.data.code) !== -1) {
				store.commit("LOGOUT");
			}
		}
	})
}
